home *** CD-ROM | disk | FTP | other *** search
/ Venus 7000 / darktronics.iso / Software / Service Packs / Win2kSP4.exe / i386 / pubplace.ht_ / pubplace.htt
Encoding:
Text File  |  2003-06-19  |  8.0 KB  |  224 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %THISDIRPATH%\folder.htt (if customized) or
  4.  * %TEMPLATEDIR%\folder.htt (if not customized).
  5.  -->
  6.  
  7. <meta name="Version" content="2313"> <meta name="Microsoft Theme" content="none"> <meta name="Language Code" content="1033">
  8. <html>
  9.     <style>
  10.         body        {margin: 0; font: menu; color: black}
  11.         #FileList        {position: absolute; left: 0px; top: 0; width: 100%; height: 100%}
  12.         #Media        {margin-left: 15px}
  13.         #Panel        {position: absolute; width: 200px; height: 100%; overflow: auto}
  14.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  15.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  16.         #Status        {margin-left: 15px}
  17.         #Brand        {position: absolute; left: 30%; width: 70%; height: 100%; overflow: auto}
  18.         p        {margin-left: 15px; margin-top: 15px; margin-right: 15px}
  19.         p.Title        {margin-top: 8px; font: 13pt/13pt menu; font-weight: bold}
  20.         p.LogoLine    {margin-left: 0; margin-top: -5px; margin-right: 0; margin-bottom: 20px}
  21.         p.Warning    {font-weight: bold; color: red}
  22.         p.Links        {margin-top: 5px}
  23.         a.Command    {font-weight: bold}
  24.         div.Release     {width: 160px; text-align: right; background: buttonface; padding: 0px, 8px, 4px, 8px}
  25.     </style>
  26.  
  27.     <head>
  28.         <!-- allow references to any resources you might add to the folder -->
  29.         <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  30.         <!-- webbot bot="HTMLMarkup" id="MyFavoriteID" tag="base" startspan -->
  31.         <!-- base href="%THISDIRPATH%\" -->
  32.         <!-- webbot bot="HTMLMarkup"  endspan -->
  33.  
  34.         <script language="JavaScript">
  35.             var L_Prompt_Text    = "Select an item to view its description.";
  36.             var L_Multiple_Text    = " items selected.";
  37.             var L_Size_Text        = "Size: ";
  38.             var L_FileSize_Text    = "Total File Size: ";
  39.             var L_Delimiter_Text    = ",";
  40.             var L_Bytes_Text    = " bytes";
  41.             var L_Attributes_Text    = "Attributes";
  42.             var L_Codes_Text    = "RHSaCE"; // suppress the Archive flag
  43.             var L_ReadOnly_Text     = "Read-only";
  44.             var L_Hidden_Text    = "Hidden";
  45.             var L_System_Text    = "System";
  46.             var L_Archive_Text    = "Archive";
  47.             var L_Compressed_Text    = "Compressed";
  48.             var L_Encrypted_Text    = "Encrypted";
  49.             var L_NoAttributes_Text = "(normal)";
  50.             var L_Properties_Text    = "P&roperties";
  51.             var timer        = 0;
  52.             var wantMedia        = false; // cool, but may hinder media file manipulation
  53.  
  54.             function FixSize() {
  55.                 // this function handles fixed panel sizing and collapsing when the window resizes
  56.                 if (document.body.clientWidth < 400) {
  57.                     document.all.Panel.style.visibility = "hidden";
  58.                     document.all.FileList.style.pixelLeft = 0;
  59.                 } else {
  60.                     document.all.Panel.style.visibility = "visible";
  61.                     document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth; 
  62.                 }
  63.                 document.all.FileList.style.pixelWidth = document.body.clientWidth - document.all.FileList.style.pixelLeft;
  64.             }
  65.  
  66.             function FormatNumber(n) {
  67.                 var t = "";
  68.                 var i, j = 0;
  69.                 for (i = n.length - 1; i >= 0; i--) {
  70.                     t = n.charAt(i) + t;
  71.                     if (i && ((++j % 3) == 0))
  72.                         t = L_Delimiter_Text + t;
  73.                 }
  74.                 return t;
  75.             }
  76.  
  77.             function Properties() {
  78.                 FileList.SelectedItems().Item(0).InvokeVerb(L_Properties_Text);
  79.             }
  80.  
  81.             function SanatizeString(data) {
  82.  
  83.                 var re = /\</g;
  84.  
  85.                 var s = data.replace( re, "<");
  86.  
  87.                 re = />/g;
  88.  
  89.                 s = s.replace( re, ">");
  90.  
  91.  
  92.  
  93.                 return s;
  94.  
  95.             }
  96.  
  97.  
  98.  
  99.             function Init() {
  100.                 // call our FixSize() function whenever the window gets resized
  101.                 window.onresize = FixSize;
  102.                 FixSize();
  103.                 Info.innerHTML = L_Prompt_Text;
  104.             }
  105.         </script>
  106.  
  107.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  108.             // this script updates the left info panel when you select icons
  109.             var fldr = FileList.Folder;
  110.             var items;
  111.             var name;
  112.             var data;
  113.             var text;
  114.             var title;
  115.             var size = 0;
  116.             var i;
  117.  
  118.             // cancel any pending status message
  119.             if (timer) {
  120.                 window.clearTimeout(timer);
  121.                 timer = 0;
  122.             }
  123.  
  124.             // erase any visible thumbnail since the selection changed
  125.             document.all.Thumbnail.style.display = "none";
  126.             document.all.Status.style.display = "none";
  127.  
  128.             // stop & destroy any media player
  129.             if (wantMedia)
  130.                 document.all.Media.innerHTML = "";
  131.  
  132.             data = FileList.SelectedItems().Count;
  133.             if (data == 0) {
  134.                 // nothing selected?
  135.                 Info.innerHTML = L_Prompt_Text;
  136.                 return;
  137.             }
  138.             else if (data > 1) {
  139.                 // more than one item selected?
  140.                 text = data + L_Multiple_Text + "<br>";
  141.                 if (data <= 100) {
  142.                     for (i = 0; i < data; i++)
  143.                         size += FileList.SelectedItems().Item(i).Size;
  144.                     if (size)
  145.                         text += "<br>" + L_FileSize_Text + FormatNumber(size.toString()) + L_Bytes_Text + "<br>";
  146.                     if (data <= 16)
  147.                         for (i = 0; i < data; i++)
  148.                             text += "<br>" + SanatizeString(FileList.SelectedItems().Item(i).Name);
  149.                 }
  150.                 Info.innerHTML = text;
  151.                 return;
  152.             }
  153.  
  154.             // name
  155.             text = "<b>" +SanatizeString(FileList.SelectedItems().Item(0).Name) + "</b>";
  156.  
  157.             // replace Info with the new text
  158.             Info.innerHTML = text;
  159.  
  160.             if (wantMedia && size) {
  161.                 // show media preview or thumbnail based on file extension
  162.                 ext = name.substring(name.lastIndexOf(".") + 1, name.length);
  163.                 ext = ext.toLowerCase();        
  164.                 if (ext == 'avi' || ext == 'mov' || ext == 'qt' || ext == 'mpe' || ext == 'mpeg' || ext == 'mpg') {
  165.                     // show a movie player
  166.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 148px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0><param name=BorderStyle value=0></object>';
  167.                 } else if (ext == 'aif' || ext == 'aifc' || ext == 'aiff' || ext == 'au' || ext == 'mid' || ext == 'rmi' || ext == 'snd' || ext == 'wav') {
  168.                     // show a sound player
  169.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 28px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0></center></object>'
  170.                 }
  171.             }
  172.  
  173.             // try to generate a new thumbnail asynchronously, and delay the status message one second
  174.             if (size && (size < 10000000) && Thumbnail.displayFile(items.Path))
  175.                 timer = window.setTimeout('document.all.Status.style.display = ""', 1000);
  176.         </script>
  177.  
  178.         <script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
  179.             // when a valid thumbnail has been generated, display it
  180.             window.clearTimeout(timer);
  181.             timer = 0;
  182.             document.all.Status.style.display = "none";
  183.             if (document.all.Thumbnail.haveThumbnail() && document.all.Media.innerHTML == "")
  184.                 document.all.Thumbnail.style.display = "";
  185.         </script>
  186.     </head>
  187.  
  188.     <body scroll=no onload="Init()">
  189.         <!-- start left info panel -->
  190.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%\wvleft.bmp) no-repeat">
  191.             <p>
  192.             <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  193.                 <param name="scale" value=100>
  194.             </object>
  195.  
  196.             <p class=Title>
  197.             <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  198.             %THISDIRNAME%
  199.             <!--webbot bot="HTMLMarkup" endspan -->
  200.             
  201.             <p class=LogoLine>
  202.             <img src="%TEMPLATEDIR%\wvline.gif">
  203.             
  204.             <p>
  205.             <span id=Info>
  206.             </span>
  207.  
  208.             <!-- this is the thumbnail viewer control -->
  209.             <object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display: none">
  210.             </object>
  211.  
  212.             <!-- this is the status message that pops up during thumbnail generation -->
  213.             <div id=Status style="display: none">
  214.                 Generating preview...
  215.             </div>
  216.             
  217.             <p>
  218.             <!-- this contains any ActiveMovie control created later -->
  219.             <div id=Media>
  220.             </div>
  221.             
  222.         </div>
  223.         <!-- end left info panel -->
  224.  
  225.         <!-- this is the standard file list control -->
  226.         <!-- webbot bot="HTMLMarkup" startspan -->
  227.         <object id=FileList border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  228.         </object>
  229.         <!-- webbot bot="HTMLMarkup" endspan -->
  230.  
  231.     </body>
  232. </html>
  233.